﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace PM.Entity
{
    public class Order
    {

        #region public methods
        /// <summary>
        /// default constructor of Order. 
        /// </summary>
        public Order()
        {
            this.OrderId = 0;
            this.ClienId = string.Empty;
            this.SecurityId = string.Empty;
            this.OriginalQty = 0;
            this.Price = 0;
            this.OrderDateTime = string.Empty;
            this.OrderType = string.Empty;
            this.BrokerRef = string.Empty;
            this.Tif = string.Empty;
            this.TifDays = 0;
            this.LotType = string.Empty;
            this.OriginalOrderId = string.Empty;
            this.TranId = string.Empty;
            this.BuySell = string.Empty;
            this.MinFillQty = 0;
            this.ForeignBroker = 0;
            this.TradeId = string.Empty;
            this.BrokerOffice = string.Empty; 

            


        }

        #endregion

        #region property

        public int OrderId { get; set; }
        public string ClienId { get; set; }
        public string SecurityId { get; set; }
        public int OriginalQty { get; set; }
        public double Price { get; set; }
        public string OrderDateTime { get; set; }
        public string OrderType { get; set; }
        public string BrokerRef { get; set; }
        public string Tif { get; set; }
        public int TifDays { get; set; }
        public string LotType { get; set; }
        public string OriginalOrderId { get; set; }
        public string TranId { get; set; }
        public string BuySell { get; set; }
        public int MinFillQty { get; set; }
        public int ForeignBroker { get; set; }        
        public string TradeId { get; set; }
        public string BrokerOffice { get; set; }


        #endregion
    }

    public class OrderCollection : Collection<Order>
    {
        public OrderCollection()
        {
        }
    }
}
